import { reactive } from "vue";

export const _$ = reactive({
  query: {
    requestParam: {
      pageNum: 0,
      pageSize: 10,
      condition: {
        delFlag: "N",
      },
    },
    responseParam: {
      total: 0,
      records: [],
    },
  },
  delete: {
    requestParam: {
      ids: [],
      delFlag: "N",
    },
    responseParam: {},
  },
});

export const $ = {
  onSearch() {},

  clean() {
    _$.query = {
      requestParam: {
        pageNum: 0,
        pageSize: 10,
        condition: {
          delFlag: "N",
        },
      },
      responseParam: {
        total: 0,
        records: [],
      },
    };
    _$.delete = {
      requestParam: {
        ids: [],
        delFlag: "N",
      },
      responseParam: {},
    };
  },
};

export const to = {};
